/*
 * @Author: Huangdong
 * @Date: 2022-03-28 15:21:05
 * @LastEditors: minsheng_insurance_agency_zhoucl
 * @LastEditTime: 2025-11-25 09:47:25
 * @FilePath: \01.latest-short-insure\src\components\Vant.js
 * @Description:
 *
 *
 */
import Vue from "vue";
import {
  Icon,
  Tab,
  Tabs,
  List,
  Cell,
  Button,
  Popup,
  Field,
  Dialog,
  Toast,
  Swipe,
  SwipeItem,
  CellGroup,
  Image,
  Overlay,
  Loading,
  Divider,
  Checkbox,
  CheckboxGroup,
  Radio,
  RadioGroup,
  Uploader,
  ImagePreview,
  DatetimePicker,
  Picker,
} from "vant";

Vue.use(Icon);
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(List);
Vue.use(Cell);
Vue.use(Button);
Vue.use(Popup);
Vue.use(Dialog);
Vue.use(Toast);
Vue.use(Swipe);
Vue.use(SwipeItem);

Vue.use(CellGroup);
Vue.use(Image);

Vue.use(Overlay);
Vue.use(Loading);
Vue.use(DatetimePicker);

Vue.use(Checkbox);
Vue.use(CheckboxGroup);
Vue.use(RadioGroup);
Vue.use(Radio);
Vue.use(Divider);

Vue.use(Uploader);
Vue.use(ImagePreview);
Vue.use(Picker);

Vue.component(Field.name /*You custom name*/, {
  extends: Field,
  props: {
    formatter: {
      type: Function,
      default: function (value) {
        return value.replace(/\s+/g, "");
      },
    },
  },
});
